package cn.iune.erp.baseinfo;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

/*
 * 公司关联的结算方式
 * 
 */

@Entity
@Table(name="SettleCategory",uniqueConstraints={@UniqueConstraint(columnNames={"settleCode", "enterpriseNo"})})
@NamedQuery(name="SettleCategory.findAll", query="SELECT s FROM SettleCategory s ORDER BY s.sortNo ASC ")
public class SettleCategory {

	
	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=1)
	private String settleCode;
	@Column(length=50)
	private String settleName;
	@Column(length=2)
	private String sortNo;

	
	@Column(length=32)
	private String capitalID;//默认资金账号ID
//	@Transient//非持久字段
	@Column(length=10)
	private String capitalNo;
//	@Transient//非持久字段
	@Column(length=50)
	private String capitalName;
//	@Transient//非持久字段
	@Column(length=256)
	private String capitalFullName;//资金账户名称
	
//	//是否在线支付
//	private int payOnline = 0;
//	//支付渠道
//	@Column(length=10)
//	private String payChannel;//ALIPAY;WXPAY
//	@Column(length=50)
//	private String payChannelLabel;//ALIPAY;WXPAY
	
	
	@Column(length=15)
	private String cUsercode;
	@Column(length=20)
	private String cUsername;//制单人
	private Timestamp cDatetime;
	
	@Column(length=32)
	private String userId;

	@Column(length=128)
	private String enterpriseNo;
	@Column(length=128)
	private String enterpriseName;
	
	
//	@Column(length=32)
//	private String orgID;

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getSettleCode() {
		return settleCode;
	}
	public void setSettleCode(String settleCode) {
		this.settleCode = settleCode;
	}
	public String getSettleName() {
		return settleName;
	}
	public void setSettleName(String settleName) {
		this.settleName = settleName;
	}
	public String getSortNo() {
		return sortNo;
	}
	public void setSortNo(String sortNo) {
		this.sortNo = sortNo;
	}

	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getCapitalID() {
		return capitalID;
	}
	public void setCapitalID(String capitalID) {
		this.capitalID = capitalID;
	}
	public String getCapitalNo() {
		return capitalNo;
	}
	public void setCapitalNo(String capitalNo) {
		this.capitalNo = capitalNo;
	}
	public String getCapitalName() {
		return capitalName;
	}
	public void setCapitalName(String capitalName) {
		this.capitalName = capitalName;
	}
	public String getCapitalFullName() {
		return capitalFullName;
	}
	public void setCapitalFullName(String capitalFullName) {
		this.capitalFullName = capitalFullName;
	}
	public String getcUsercode() {
		return cUsercode;
	}
	public void setcUsercode(String cUsercode) {
		this.cUsercode = cUsercode;
	}
	public String getcUsername() {
		return cUsername;
	}
	public void setcUsername(String cUsername) {
		this.cUsername = cUsername;
	}
	public Timestamp getcDatetime() {
		return cDatetime;
	}
	public void setcDatetime(Timestamp cDatetime) {
		this.cDatetime = cDatetime;
	}
	public String getEnterpriseNo() {
		return enterpriseNo;
	}
	public void setEnterpriseNo(String enterpriseNo) {
		this.enterpriseNo = enterpriseNo;
	}
	public String getEnterpriseName() {
		return enterpriseName;
	}
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	
}
